import { createBrowserRouter } from 'react-router'
import { Layout } from '@/layout'
import { CockpitIndex } from '@/pages/cockpit'

const router = createBrowserRouter([
	{
		path: '/',
		Component: Layout,
		children: [
			{
				index: true,
				Component: CockpitIndex,
			},
		],
	},
	{
		path: '*',
		element: <div>404</div>,
	},
])

export default router
